package com.ds.service;

import com.ds.pojo.User;
import org.springframework.stereotype.Service;

/**
 * @program: SpringBoot
 * @description:
 * @author: Dawson.Zhang
 * @create: 2020-04-13
 **/
@Service
public class UserService {
    User user;
    //在只有一个有参构造的情况下，参数值会从容器中获取
    public UserService(User user) {
        this.user = user;
    }

    public User getUser(){
        return user;
    }


}
